package com.im.gen;

import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@SpringBootTest
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class GenPassword {
  @Autowired private PasswordEncoder passwordEncoder;

  @Test
  public void init() {
		System.out.println(passwordEncoder.encode("User_1@im.com"));
    System.out.println(passwordEncoder.encode("User_2@im.com"));
		System.out.println(passwordEncoder.encode("GongymPassword@im.com"));
  }
}
